package o;

import android.content.Context;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import com.bumptech.glide.Glide;

public class czd {
    public static void ˋ(ImageView imageView, String str) {
        if (imageView == null || str == null) {
            cyq.ˋ.ˊ("GifUtils", "asyncLoadGif param is null");
            return;
        }
        ro ˋ = ˋ(imageView.getContext(), str);
        if (ˋ == null) {
            cyq.ˋ.ˊ("GifUtils", "asyncLoadGif RequestBuilder is null");
        } else {
            ˋ.ॱ(new era()).ˏ(imageView);
        }
    }

    private static ro ˋ(Context context, String str) {
        try {
            return Glide.ˏ(context).ʼ().ˎ(str).ॱ((zp) ((zp) new zp().ˊ(tf.ˊ)).ʽ());
        } catch (IllegalArgumentException e) {
            cyq.ˋ.ˊ("GifUtils", "getGifBuilder Glide IllegalArgumentException");
            return null;
        }
    }

    public static void ˋ(@NonNull ImageView imageView) {
        Glide.ˎ(imageView.getContext()).ʼ();
    }
}
